#include <QDebug>
#include <QSharedPointer>
#include <time.h>
#include <QFile>
#include <QTextStream>

#include "visualkukarobotremotehmidll.h"
#include "visualkukarobotinstance_global.h"

VisualKUKARobotRemoteHmiDLL::VisualKUKARobotRemoteHmiDLL(){
   PLU_KPluginInstanceCreate(REMOTEHMI);
}

VisualKUKARobotRemoteHmiDLL::~VisualKUKARobotRemoteHmiDLL(){
    PLU_KPluginInstanceDelete();
}

QWidget* VisualKUKARobotRemoteHmiDLL::RegisiterPluginUi(){
    return PLU_KPluginInstanceUiRegesiter();
}

void VisualKUKARobotRemoteHmiDLL::FastTimerLoop(){
    TASK_uifast_UiDataUpdate();                     //ui状态键界面更新
    TASK_uifast_ForceScopeUpdate();                 //力曲线刷新
    TASK_uifast_LaserScopeUpdate();                 //力曲线刷新
    TASK_uifast_RobotScopeUpdate();
}
void VisualKUKARobotRemoteHmiDLL::SlowTimerLoop(){

}

void VisualKUKARobotRemoteHmiDLL::BackendDataRecv(QByteArray Data){
    TASK_RemoteDataRecv(Data);
}
void VisualKUKARobotRemoteHmiDLL::BackendDataSend(QByteArray& Data){
    TASK_RemoteDataSend(Data);
}



